﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PortalSetting.ascx.cs"
    Inherits="Framework.Portal.Layouts.Admin.Components.Portals.PortalSettings" %>
<%@ Register Assembly="Framework.FilePickerControl" Namespace="Framework.FilePicker"
    TagPrefix="cc2" %>
<%@ Register Assembly="System.Web.Extensions" Namespace="System.Web.UI" TagPrefix="asp" %>
<asp:UpdatePanel ID="upanelRoleManagement" runat="server" UpdateMode="Conditional"
    RenderMode="Inline">
    <ContentTemplate>
        <table border="0" cellpadding="0" cellspacing="1" class="content" width="100%">
            <tr>
                <td class="postheader" width="60%" align="left" valign="top">
                    <asp:UpdatePanel ID="upanelGridPortals" runat="server" UpdateMode="Conditional" RenderMode="Inline">
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="btnUpdate" EventName="Click" />
                            <asp:AsyncPostBackTrigger ControlID="btnAdd" EventName="Click" />
                        </Triggers>
                        <ContentTemplate>
                            <table class="content" cellspacing="1" cellpadding="0" width="100%">
                                <tr>
                                    <td class="header2" style="height: 19px" align="left">
                                        <ns:label id="Label1" runat="server" localizedpage="TABLECAPTION"
                                            localizedtag="NAME" />
                                    </td>
                                     <td class="header2" style="height: 19px" align="left">
                                        <ns:label id="Label4" runat="server" localizedpage="TABLECAPTION"
                                            localizedtag="VALUE" />
                                    </td>
                                    <td class="header2" style="height: 19px" align="left">
                                        <ns:label id="Label2" runat="server" localizedpage="TABLECAPTION"
                                            localizedtag="DESCRIPTION" />
                                    </td>
                                    <td class="header2" style="height: 19px" width="80" align="left">
                                        <ns:label id="Label3" runat="server" localizedpage="TABLECAPTION"
                                            localizedtag="ACTION" />
                                    </td>
                                </tr>
                                <asp:Repeater ID="dgrPortals" runat="server" OnItemCommand="dgrPortals_ItemCommand" OnItemDataBound="dgrPortals_ItemDataBound">
                                    <ItemTemplate>
                                        <tr>
                                            <td class="post" align="left" width="20%">
                                                <asp:LinkButton ID="NameEdit" runat="server" CommandName="editportal" CommandArgument='<%# Eval("NAME") %>'
                                                    Text='<%# Eval("NAME") %>' />
                                            </td>                                            
                                            <td class="post" align="left" width="30%">
                                                <asp:Label ID="lblValue" runat="server"></asp:Label>
                                            </td>
                                            <td class="post" align="left" width="35%">
                                                <asp:Label ID="lblDescription" runat="server"></asp:Label>
                                            </td>
                                            <td class="post" align="left" width="15%">
                                                <ns:imagebutton localizedpage="IMAGEACTION" localizedtag="EDIT24"
                                                    authenticated="UPDATE" id="btnEditPortal" runat="server" commandargument='<%# Eval("NAME") %>'
                                                    commandname="editportal" tooltip="Sửa" />
                                                &nbsp;
                                                <ns:imagebutton localizedpage="IMAGEACTION" localizedtag="DELETE24"
                                                    authenticated="DELETE" id="btnDeletePortal" runat="server" commandargument='<%# Eval("NAME") %>'
                                                    commandname="deleteportal" tooltip="Xóa" />
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                </asp:Repeater>
                                <tr>
                                    <td class="postfooter" colspan="4">
                                        &nbsp;
                                    </td>
                                </tr>
                            </table>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </td>
                <td class="post" width="40%" align="left" valign="top">
                    <table width="100%" cellspacing="1" cellpadding="0" border="0" class="content">
                        <tr>
                            <td class="header1" align="left" colspan="2">
                                <asp:Label ID="lblCommandName" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" class="header2" height="18">
                                <asp:Label ID="lblUpdateStatus" runat="server" ForeColor="Blue" Font-Bold="True"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="postheader" width="30%" align="left">
                                <ns:label id="Label5" runat="server" localizedpage="FORMCAPTION"
                                    localizedtag="Key" />
                            </td>
                            <td class="post" width="70%" align="left">
                                <asp:TextBox ID="txtAppSettingKey" runat="server" Columns="40" />
                            </td>
                        </tr>
                        <tr>
                            <td class="postheader" width="30%" align="left">
                                <ns:label id="Label6" runat="server" localizedpage="FORMCAPTION"
                                    localizedtag="VALUE" />
                            </td>
                            <td class="post" width="70%" align="left">
                                <asp:TextBox ID="txtAppSettingValue" runat="server" Columns="40" />
                            </td>
                        </tr>
                        <tr>
                            <td class="postheader" width="30%" align="left">
                                <ns:label id="Label7" runat="server" localizedpage="FORMCAPTION"
                                    localizedtag="DESCRIPTION" />
                            </td>
                            <td class="post" width="70%" align="left">
                                <asp:TextBox ID="TextBox1" runat="server" Columns="40" />
                            </td>
                        </tr>
                        <tr>
                            <td class="postfooter" colspan="2" valign="middle" align="center">
                                <ns:button localizedpage="ACTION" localizedtag="UPDATE"
                                    authenticated="UPDATE" id="btnUpdate" runat="server" cssclass="pbutton" onclick="btnUpdate_Click"
                                    text="Cập nhật" />
                                &nbsp;
                                <ns:button localizedpage="ACTION" localizedtag="CREATE"
                                    authenticated="CREATE" id="btnAdd" runat="server" cssclass="pbutton" onclick="btnAdd_Click"
                                    text="Thêm mới" />
                                &nbsp;
                                <ns:button localizedpage="ACTION" localizedtag="RESET"
                                    id="btnCancel" runat="server" cssclass="pbutton" text="Huỷ" width="60px" onclick="btnCancel_Click" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </ContentTemplate>
</asp:UpdatePanel>
